<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="/init.jsp" %>
<jsp:useBean id="DataManager" class="dto.DataManager" scope="application"></jsp:useBean>
<jsp:useBean id="DtoUser" class="dto.DtoUser" scope="application"></jsp:useBean>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>View User</title>
</head>
<body>
	<div class="master-wrapper-content">
		<jsp:include page="heading.jsp"></jsp:include>
		<jsp:include page="CategoryAdmin.jsp"></jsp:include>
		<div class="container-right">
	<%
		int Id = Integer.valueOf(request.getParameter("userId"));
		User user = DataManager.getUserWithUserId(Id);
		if(user == null) {%>
		<h3>Không có thông tin User</h3>
		<%} else { %>
		<div class="content-detailuser">
			<h2><%=user.getUsername() %></h3>
			<p class="detailuser">User Id : <span class="span-content"><%=user.getUserId() %></span></p>
			<p class="detailuser">User Birthday: <span class="span-content"><%=user.getBrithDay() %></span></p>
			<p class="detailuser">User Mail: <span class="span-content"><%=user.getEmail() %></span></p>
			<p class="detailuser">DateTime Register : <span class="span-content"><%=user.getDatetimeRegister() %></span></p>
			<p class="detailuser">Ownmoney : <span class="span-content"><%=user.getOwnMoney() %></span></p>
		</div>
		<% } %>
		</div>
		<div class="clear"></div>
	</div>
</body>
</html>